package com.ujoku.view.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.labillusion.core.util.jsonFormat.SimpleDoubleSerializer;

import java.util.List;

/**
 * Created by Greg.Chen on 2015/2/9.
 */
public class MyListFriendItem {

    private Integer goodsId;
    private String goodsName;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double price;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double minPrice;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double maxPrice;

    private String mediumImage;

    private List<MyListFriendView> friendList;
    private int count;

    public int getCount() {
        if(friendList != null)
            return  friendList.size();

        return 0;
    }

    public Double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Double minPrice) {
        this.minPrice = minPrice;
    }

    public Double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getMediumImage() {
        return mediumImage;
    }

    public void setMediumImage(String mediumImage) {
        this.mediumImage = mediumImage;
    }

    public List<MyListFriendView> getFriendList() {
        return friendList;
    }

    public void setFriendList(List<MyListFriendView> friendList) {
        this.friendList = friendList;
    }
}
